package com.joker.aigc.chat.domain.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotNull;
import java.util.Date;

/**
 * Description: 群成员列表的成员信息
 * Author: <a href="https://github.com/zongzibinbin">abin</a>
 * Date: 2023-03-23
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ContactVo {


    @NotNull
    @Schema(description = "房间id")
    private Long roomId;

    @NotNull
    @Schema(description = "房间类型 1群聊 2单聊")
    private Integer type;

    @NotNull
    @Schema(description = "是否全员展示的会话 0否 1是")
    private Integer hot_Flag;

    @NotNull
    @Schema(description = "最新消息")
    private String text;

    @NotNull
    @Schema(description = "会话名称")
    private String name;

    @NotNull
    @Schema(description = "会话头像")
    private String avatar;

    @NotNull
    @Schema(description = "房间最后活跃时间(用来排序)")
    private Date activeTime;

    @NotNull
    @Schema(description = "未读数")
    private Integer unreadCount;


}
